#!/usr/bin/env python3
# _*_ coding:utf-8 _*_
import os

# 根目录
BASE_PATH = os.path.dirname(
    os.path.dirname(__file__)
)

# log文件目录
logfile_dir = os.path.join(BASE_PATH, 'log')
logfile_name = 'run.log'
result_name = 'result.csv'
# 如果不存在定义的目录就创建一个
if not os.path.isdir(logfile_dir):
    os.mkdir(logfile_dir)
# log 文件的全路径
logfile_path = os.path.join(logfile_dir, logfile_name)

# result 路径
result_path = os.path.join(logfile_dir, result_name)

# Header 中自定义token,以及headers
HEADERS = {"User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1.6) ",
           "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
           "Accept-Language": "en-us",
           "Connection": "keep-alive",
           "Accept-Charset": "GB2312,utf-8;q=0.7,*;q=0.7"}
token = ''
